use dataset_representation, clear

eststo clear

eststo, title("District attorneys"): bs, reps(1000): reg rep vot if ///
	official == "DA", cluster(district_official)
eststo, title("Local officials"): bs, reps(1000): reg rep vot if ///
	official_group == "Local", cluster(district_official)
eststo, title("State legislators"): bs, reps(1000): reg rep vot if ///
	official_group == "State legislator", cluster(district_official)
eststo, title("US House members"): bs, reps(1000): reg rep vot if ///
	official_group == "US House member", cluster(district_official)

label variable vot "Voter liberalism"

#delimit;

esttab
	using "_output/table 2.tex"
	,
		label
		replace
		booktabs
		cells(b(fmt(3) star) se(par))
		collabels(none)
		mtitles
		gap
		width(\linewidth)
		align(c)
		stats(N N_clust, 
			label("Observations" "Clusters")
			fmt(%20.0fc)
		)
		;
		
#delimit cr
